package com.haipi.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import com.haipi.dao.IMailDAO;
import com.haipi.model.MailInfo;
import com.haipi.service.IMailService;
@Component("mailService")
@Scope("singleton")
public class MailServiceImpl implements IMailService
{

    @Resource
    IMailDAO mailDAO=null;

	@Override
	public List getSendMaiList()
	{
		// TODO Auto-generated method stub
		return mailDAO.getSendMaiList();
	}

	@Override
	public int deleteMail(List<MailInfo> list)
	{
		// TODO Auto-generated method stub
		return mailDAO.deleteMail(list);
	}

	@Override
    public int deleteMail(Integer commId)
    {
        // TODO Auto-generated method stub
        return mailDAO.deleteMail(commId);
    }

}
